import request from '@/utils/request'

export function getStudentInfos() {
  return request({
    url: '/api/students',
    method: 'get',
  })
}

export function updateStudentInfo(data) {
  return request({
    url: '/api/students',
    method: 'put',
    data,
  })
}

export function deleteStudentInfo(id) {
  return request({
    url: `/api/students/${id}`,
    method: 'delete',
  })
}
